all: driver.o 3F03_Assignment3.o asm_io.o
	gcc -m32 -o assign3 driver.c 3F03_Assignment3.o asm_io.o

3F03_Assignment3.o: 3F03_Assignment3.asm
	nasm -f elf 3F03_Assignment3.asm

asm_io.o: asm_io.asm
	nasm -f elf -d ELF_TYPE asm_io.asm

clean:
	rm -f *.o assign2